home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.uwo.ca!usenet
- From: Sharon Wang <swang1@julian.uwo.ca>
- Newsgroups: comp.lang.c++
- Subject: A LINKed LIST Question
- Date: 18 Apr 1996 06:04:49 GMT
- Organization: UWO, London, Canada
- Message-ID: <4l4m21$sr1@falcon.ccs.uwo.ca>
- NNTP-Posting-Host: ts3-11.slip.uwo.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Authenticated: swang1@ts3-11.slip.uwo.ca
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- I have the following def'n
-
- class Node {
- ItemType item1; // ItemType define
- ItemType item2;
- ...
- public:
- functions on item;
- };
-
- class NodeList {
- Node N;
- Node* FLink;
- Node* BLink;
- public:
- functions on Node;
- };
-
- However, I can't access the members of Node in the list since
- they are "private". How can I get arount this WIHTOUT using
- access functions in class Node.
-
- Sharon
- <swang1@julian.uwo.ca>
-
-